/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.liquidByte.trafficMustang.server.dao;

import org.liquidByte.trafficMustang.server.repository.PersistableRepository;

/**
 *
 * @author Alexandre
 */
public abstract class PersistableDAO<T> extends ReadableDAO<T> implements PersistableRepository<T> {

    PersistableDAO(Class<T> classType) {
        super(classType);
    }
    
    public void delete(T object) {
        this.getEntityManager().remove(object);
    }

    public void persist(T object) {
        this.getEntityManager().persist(object);
    }
}
